package com.example.service.impl;

import com.example.dao.ShopCarDao;
import com.example.entity.ShopCar;
import com.example.service.ShopService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
@Service
public class ShopServiceImpl implements ShopService {
    @Autowired
    private ShopCarDao shopCarDao;
    @Override
    public List<ShopCar> FindGoodsByUid(int uid) {
        return shopCarDao.FindGoodsByUid(uid);
    }

    @Override
    public boolean addshop(ShopCar shopCar) {
        return shopCarDao.addshop(shopCar)>0;
    }

    @Override
    public boolean remove(int shopid) {
        return shopCarDao.remove(shopid)>0;
    }
}
